from digits import isPandigital, nrDigits

def concat(a, b):
    return int(str(a) + str(b))
    
def concatProduct(n, limit):
    prod = n
    mul = 2
    
    while (prod < limit):
        next = mul * n
        mul += 1
        prod = concat(prod, next)
        
    return prod

limit = 123456789

ranges = [range(91, 100), range(918, 1000), range(9182, 10000)]

for range in ranges:
    for n in range:
        p = concatProduct(n, limit)
        if isPandigital(p):
            print p
